package cn.zwx.activiti.example.model.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @description:
 * @projectName:activiti-example
 * @see:cn.zwx.activiti.example.model.resp
 * @author:zhangwenxue
 * @createTime:2021/6/8 20:29
 * @version:1.0
 */
@Data
@ApiModel("根据用户名称查询历史任务信息返回参数")
public class InstancesByUserResp {

    @ApiModelProperty("任务id")
    private String taskId;

    @ApiModelProperty("任务名称")
    private String taskName;

    @ApiModelProperty("流程实例id")
    private String processInstanceId;

    @ApiModelProperty("流程定义id")
    private String processDefinitionId;

    @ApiModelProperty("任务开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("任务结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("任务耗时")
    private Long durationInMillis;

    @ApiModelProperty("任务删原因")
    private String deleteReason;


}
